package com.geovis.emergency.spd.biz.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geovis.emergency.spd.entity.basic.entity.BasicDutyOrg;
import com.geovis.emergency.spd.entity.basic.pojo.vo.BasicDutyOrgVO;
import com.geovis.emergency.spd.entity.mobile.pojo.vo.MobileDutyTree;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 基础模块-组织架构 Mapper 接口
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/28
 */
public interface BasicDutyOrgMapper extends BaseMapper<BasicDutyOrg> {

    /**
     * 根据父级id查询岗位列表
     * @param parentId 父级id
     * @return
     */
    List<MobileDutyTree> getByDutyByParentId(String parentId);

    /**
     * 获取树形列表
     * @param orgName
     * @param fullName
     * @return
     */
    List<BasicDutyOrgVO> selectTree(@Param("orgName") String orgName, @Param("fullName") String fullName);
}
